package handler

import "google.golang.org/protobuf/reflect/protoreflect"

type CmdContext interface {
	GetId() string
	SetId(id string)
	BindUserId(val uint32)
	GetUserId() uint32
	GetClientIpAddr() string
	GetSessionId() uint32
	SetSessionId(val uint32)
	Write(msgObj protoreflect.ProtoMessage)
	SendError(errorCode int, errorMsg string)
	Disconnect()
}
